package com.bwda.dsrs.systemservice.service.impl;

import com.bwda.dsrs.systemservice.domain.Constants;
import com.bwda.dsrs.systemservice.domain.po.msgtemplate.MsgTemplatePo;
import com.bwda.dsrs.systemservice.domain.condition.msgtemplate.MsgTemplateCondition;
import com.bwda.dsrs.systemservice.mapper.MsgTemplateMapper;
import com.bwda.dsrs.systemservice.service.MsgTemplateService;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * 邮件
 *
 * @author yj
 * @date 2019年4月28日
 */
@Service
public class MsgTemplateServiceImpl extends AbstractBaseServiceImpl<MsgTemplatePo, MsgTemplateCondition, MsgTemplateMapper> implements MsgTemplateService {

	@Override
	public void batchDelete(List<Integer> id) {
		MsgTemplatePo po = new MsgTemplatePo();
		po.setIdList(id);
		po.setDelFlag(Constants.DELETED);
		this.getMapper().update(po);
	}
}